﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using lib.Twitter;
using System.Text.RegularExpressions;

namespace lib.Twitter
{
    [Table(Name = "Status")]
    public class Status
    {
        [Column]
        public DateTime created_at;
        [Column(IsPrimaryKey = true)]
        public long id;
        [Column]
        public String in_reply_to_screen_name;
        [Column]
        public int in_reply_to_status_id;
        [Column]
        public int in_reply_to_user_id;
        [Column]
        public String source;
        private string t;
        [Column]
        public String text
        {
            get
            {
                return this.t;
            }

            set
            {
                t = Regex.Unescape(value);
            }
        }

        [Column]
        public long user_id;
        [Column]
        public int read;

        public override string ToString()
        {
            return this.text;
        }
    }
}
